const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    /**一个排行榜预制 */
    @property({type: cc.Prefab, tooltip: "一个排行榜预制"})
    Rank: cc.Prefab = null;

    onLoad() {
        cc.instantiate(this.Rank).parent = this.node;
    }

}